package com.clotingshoppos.modules.Shiro.repository;


import com.clotingshoppos.common.base.BaseEntity.BaseEntity;
import com.clotingshoppos.common.base.BaseRepository.BaseRepository;
import com.clotingshoppos.modules.Shiro.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface RoleRepository extends BaseRepository<Role> {
    @Query(value = "select rolename from role where id = :id", nativeQuery = true)
    String getRoleName(@Param("id") String roleId);
}